influxdb/ui/.eslintrc.js

65 lines
1.9 KiB
JavaScript
Raw Normal View History

2019-03-08 02:31:17 +00:00
module.exports = {
2019-10-17 20:58:17 +00:00
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.test.json',
tsconfigRootDir: __dirname,
ecmaFeatures: {
jsx: true,
},
},
2019-10-17 20:58:17 +00:00
plugins: ['@typescript-eslint', 'react', 'prettier'],
env: {
browser: true,
es6: true,
jest: true,
},
2019-10-17 20:58:17 +00:00
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier/react',
'prettier/@typescript-eslint',
],
2019-10-17 20:58:17 +00:00
settings: {
react: {
version: 'detect',
},
},
rules: {
'no-console': ['error', {allow: ['warn', 'error']}],
'no-empty': 'off',
'getter-return': 'off',
'no-extra-boolean-cast': 'off',
'no-case-declarations': 'off',
'no-useless-escape': 'off',
'no-undef': 'off',
'no-fallthrough': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-object-literal-type-assertion': 'off',
'@typescript-eslint/array-type': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/prefer-interface': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{varsIgnorePattern: '^_', argsIgnorePattern: '^_'},
],
'react/jsx-no-target-blank': 'off',
'react/jsx-curly-brace-presence': [
'error',
{props: 'never', children: 'never'},
],
'react/display-name': 'off',
'react/no-unescaped-entities': 'off',
'react/prop-types': 'off',
'react/no-find-dom-node': 'off',
},
}