update:add ci cd files ==> do not edit those file
This commit is contained in:
+67
-67
@@ -1,67 +1,67 @@
|
||||
module.exports = {
|
||||
parser: '@typescript-eslint/parser',
|
||||
parserOptions: {
|
||||
project: 'tsconfig.json',
|
||||
sourceType: 'module',
|
||||
},
|
||||
plugins: ['@typescript-eslint/eslint-plugin'],
|
||||
extends: [
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'plugin:prettier/recommended',
|
||||
],
|
||||
root: true,
|
||||
env: {
|
||||
node: true,
|
||||
jest: true,
|
||||
},
|
||||
ignorePatterns: ['.eslintrc.js'],
|
||||
|
||||
rules: {
|
||||
'linebreak-style': 0,
|
||||
strict: 0,
|
||||
'max-len': ['error', { code: 120 }],
|
||||
'quote-props': 'off',
|
||||
'no-param-reassign': 'off',
|
||||
'no-underscore-dangle': 'off',
|
||||
'func-names': ['error', 'as-needed'],
|
||||
'prefer-const': 'warn',
|
||||
radix: 'off',
|
||||
'no-restricted-syntax': ['error', "BinaryExpression[operator='at']"],
|
||||
'no-await-in-loop': 'off',
|
||||
'no-trailing-spaces': 'off',
|
||||
'object-curly-spacing': 'off',
|
||||
'object-curly-newline': [
|
||||
'error',
|
||||
{
|
||||
ObjectExpression: {
|
||||
multiline: true,
|
||||
minProperties: 6,
|
||||
consistent: true,
|
||||
},
|
||||
ObjectPattern: { multiline: true, minProperties: 6, consistent: true },
|
||||
ImportDeclaration: {
|
||||
multiline: true,
|
||||
minProperties: 6,
|
||||
consistent: true,
|
||||
},
|
||||
ExportDeclaration: {
|
||||
multiline: true,
|
||||
minProperties: 6,
|
||||
consistent: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
'global-require': 'off',
|
||||
'import/no-dynamic-require': 'off',
|
||||
'@typescript-eslint/interface-name-prefix': 'off',
|
||||
'@typescript-eslint/explicit-function-return-type': 'off',
|
||||
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
'prettier/prettier': [
|
||||
'error',
|
||||
{
|
||||
endOfLine: 'auto',
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
module.exports = {
|
||||
parser: '@typescript-eslint/parser',
|
||||
parserOptions: {
|
||||
project: 'tsconfig.json',
|
||||
sourceType: 'module',
|
||||
},
|
||||
plugins: ['@typescript-eslint/eslint-plugin'],
|
||||
extends: [
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'plugin:prettier/recommended',
|
||||
],
|
||||
root: true,
|
||||
env: {
|
||||
node: true,
|
||||
jest: true,
|
||||
},
|
||||
ignorePatterns: ['.eslintrc.js'],
|
||||
|
||||
rules: {
|
||||
'linebreak-style': 0,
|
||||
strict: 0,
|
||||
'max-len': ['error', { code: 120 }],
|
||||
'quote-props': 'off',
|
||||
'no-param-reassign': 'off',
|
||||
'no-underscore-dangle': 'off',
|
||||
'func-names': ['error', 'as-needed'],
|
||||
'prefer-const': 'warn',
|
||||
radix: 'off',
|
||||
'no-restricted-syntax': ['error', "BinaryExpression[operator='at']"],
|
||||
'no-await-in-loop': 'off',
|
||||
'no-trailing-spaces': 'off',
|
||||
'object-curly-spacing': 'off',
|
||||
'object-curly-newline': [
|
||||
'error',
|
||||
{
|
||||
ObjectExpression: {
|
||||
multiline: true,
|
||||
minProperties: 6,
|
||||
consistent: true,
|
||||
},
|
||||
ObjectPattern: { multiline: true, minProperties: 6, consistent: true },
|
||||
ImportDeclaration: {
|
||||
multiline: true,
|
||||
minProperties: 6,
|
||||
consistent: true,
|
||||
},
|
||||
ExportDeclaration: {
|
||||
multiline: true,
|
||||
minProperties: 6,
|
||||
consistent: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
'global-require': 'off',
|
||||
'import/no-dynamic-require': 'off',
|
||||
'@typescript-eslint/interface-name-prefix': 'off',
|
||||
'@typescript-eslint/explicit-function-return-type': 'off',
|
||||
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
'prettier/prettier': [
|
||||
'error',
|
||||
{
|
||||
endOfLine: 'auto',
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user