| |
| |
| |
| |
| |
| |
| |
| |
|
|
| module.exports = { |
| 'env': { |
| 'browser': true, |
| 'es6': true, |
| 'amd': true, |
| }, |
| 'extends': [ |
| 'eslint:recommended', |
| 'plugin:react/recommended', |
| |
| |
| |
| |
| |
| ], |
| 'parser': '@babel/eslint-parser', |
| 'parserOptions': { |
| 'requireConfigFile': false, |
| 'ecmaVersion': 2018, |
| 'ecmaFeatures': { |
| 'jsx': true, |
| }, |
| 'sourceType': 'module', |
| 'babelOptions': { |
| 'plugins': [ |
| '@babel/plugin-syntax-jsx', |
| '@babel/plugin-proposal-class-properties', |
| ], |
| }, |
| }, |
| 'plugins': [ |
| 'react', |
| '@babel', |
| 'jest' |
| ], |
| 'overrides': [ |
| { |
| 'files': ['**/*.{ts,tsx}'], |
| 'plugins': [ |
| '@typescript-eslint', |
| ], |
| 'extends': ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/eslint-recommended'], |
| 'parser': '@typescript-eslint/parser', |
| 'rules': { |
| '@typescript-eslint/no-explicit-any': ['off'], |
| '@typescript-eslint/no-this-alias': ['off'], |
| } |
| }, |
| { |
| 'files': ['**/*{spec,test}.{js,jsx}', './regression/javascript/**/*.{js}'], |
| 'extends': ['eslint:recommended'], |
| 'env': { |
| 'jest': true |
| } |
| }, |
| ], |
| 'globals': { |
| '_': true, |
| 'module': true, |
| '__dirname': true, |
| 'global': true, |
| 'jest': true |
| }, |
| 'rules': { |
| 'indent': [ |
| 'error', |
| 2, |
| ], |
| 'linebreak-style': 0, |
| 'quotes': [ |
| 'error', |
| 'single', |
| ], |
| 'semi': [ |
| 'error', |
| 'always', |
| ], |
| 'comma-dangle': [ |
| 'error', |
| 'only-multiline', |
| ], |
| 'no-console': ['error', { allow: ['warn', 'error'] }], |
| |
| 'no-useless-escape': 0, |
| 'no-prototype-builtins': 0, |
| 'no-global-assign': 0, |
| 'no-import-assign': 0, |
| }, |
| 'settings': { |
| 'react': { |
| 'version': 'detect', |
| }, |
| }, |
| }; |
|
|