clipper/frontend/.eslintrc.js

31 lines
613 B
JavaScript
Raw Normal View History

2021-09-06 14:24:52 +00:00
module.exports = {
2021-09-30 19:08:48 +00:00
env: {
browser: true,
es2021: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
2021-09-06 14:24:52 +00:00
},
2021-09-30 19:08:48 +00:00
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['react', '@typescript-eslint'],
settings: {
version: 'detect',
},
rules: {
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{ varsIgnorePattern: '^_', argsIgnorePattern: '^_' },
2021-09-06 14:24:52 +00:00
],
2021-09-30 19:08:48 +00:00
},
2021-09-06 14:24:52 +00:00
};