tissue/.eslintrc.js

39 lines
1011 B
JavaScript
Raw Normal View History

2020-06-06 17:37:01 +09:00
module.exports = {
env: {
browser: true,
es2020: true,
node: true,
},
extends: [
'eslint:recommended',
2020-08-17 16:19:14 +09:00
'plugin:react/recommended',
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/@typescript-eslint',
2020-08-17 16:19:14 +09:00
'prettier/react',
2020-06-06 17:37:01 +09:00
],
2020-08-17 16:19:14 +09:00
parser: '@typescript-eslint/parser',
2020-06-06 17:37:01 +09:00
parserOptions: {
ecmaVersion: 11,
2020-08-17 16:19:14 +09:00
ecmaFeatures: {
jsx: true,
},
sourceType: 'module',
2020-06-06 17:37:01 +09:00
},
2020-08-17 16:19:14 +09:00
plugins: ['prettier', 'react', '@typescript-eslint', 'jquery'],
rules: {
'@typescript-eslint/explicit-module-boundary-types': 0,
2020-06-06 18:40:49 +09:00
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
2020-08-06 09:08:37 +09:00
'jquery/no-ajax': 2,
'jquery/no-ajax-events': 2,
2020-08-17 16:19:14 +09:00
'react/prop-types': 0,
},
settings: {
react: {
version: 'detect',
},
},
2020-06-06 17:37:01 +09:00
};