lumino
/
.eslintrc.js
65 строк · 1.9 Кб
1module.exports = {2env: {3browser: true,4es6: true,5commonjs: true,6node: true7},8globals: {9context: 'readonly',10describe: 'readonly',11it: 'readonly',12before: 'readonly',13after: 'readonly',14beforeAll: 'readonly',15afterAll: 'readonly',16beforeEach: 'readonly',17afterEach: 'readonly'18},19root: true,20extends: [21'eslint:recommended',22'plugin:@typescript-eslint/recommended',23'prettier'24],25parser: '@typescript-eslint/parser',26parserOptions: {27ecmaVersion: 'ES2018',28project: ['./tsconfigbase.json']29},30plugins: ['@typescript-eslint'],31rules: {32'@typescript-eslint/no-unused-vars': ['warn', { args: 'none' }],33'@typescript-eslint/no-use-before-define': 'off',34'@typescript-eslint/no-explicit-any': 'off',35'@typescript-eslint/no-non-null-assertion': 'off',36'@typescript-eslint/no-namespace': 'off',37'@typescript-eslint/interface-name-prefix': 'off',38'@typescript-eslint/explicit-function-return-type': 'off',39'@typescript-eslint/ban-ts-comment': ['warn', { 'ts-ignore': true }],40'@typescript-eslint/ban-types': 'warn',41'@typescript-eslint/no-non-null-asserted-optional-chain': 'warn',42'@typescript-eslint/no-var-requires': 'off',43'@typescript-eslint/no-empty-interface': 'off',44'@typescript-eslint/triple-slash-reference': 'warn',45'@typescript-eslint/no-inferrable-types': 'off',46camelcase: 'warn',47'no-inner-declarations': 'off',48'no-prototype-builtins': 'off',49'no-control-regex': 'warn',50'no-undef': 'off',51'no-case-declarations': 'warn',52'no-useless-escape': 'off',53'prefer-const': 'off',54'sort-imports': [55'error',56{57ignoreCase: true,58ignoreDeclarationSort: true,59ignoreMemberSort: false,60memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],61allowSeparatedGroups: false62}63]64}65};66