2020-08-04 12:13:41 +09:00
|
|
|
module.exports = {
|
|
|
|
'env': {
|
|
|
|
'browser': true,
|
|
|
|
'es2020': true
|
|
|
|
},
|
|
|
|
'extends': [
|
2023-04-03 04:38:26 +09:00
|
|
|
'turbo',
|
2020-08-04 12:13:41 +09:00
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:@typescript-eslint/recommended'
|
|
|
|
],
|
|
|
|
'parser': '@typescript-eslint/parser',
|
|
|
|
'parserOptions': {
|
|
|
|
'ecmaVersion': 11,
|
|
|
|
'sourceType': 'module'
|
|
|
|
},
|
|
|
|
'plugins': [
|
2023-04-24 12:30:51 +09:00
|
|
|
'@typescript-eslint',
|
|
|
|
'import',
|
|
|
|
'unused-imports',
|
2020-08-04 12:13:41 +09:00
|
|
|
],
|
|
|
|
'rules': {
|
2023-02-25 17:13:07 +09:00
|
|
|
'indent': ['error', 2, { 'SwitchCase': 1 } ],
|
2020-08-04 12:13:41 +09:00
|
|
|
'quotes': [
|
|
|
|
'error',
|
|
|
|
'single'
|
|
|
|
],
|
|
|
|
'semi': [
|
|
|
|
'error',
|
|
|
|
'always'
|
2021-01-06 23:51:10 +09:00
|
|
|
],
|
2023-04-21 21:48:14 +09:00
|
|
|
'comma-dangle': ['error', 'always-multiline'],
|
|
|
|
'eol-last': ['error', 'always'],
|
2023-02-25 17:13:07 +09:00
|
|
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
2023-04-26 12:54:20 +09:00
|
|
|
'@typescript-eslint/no-unused-vars': 'error',
|
|
|
|
'unused-imports/no-unused-imports': 'error',
|
2023-04-24 12:30:51 +09:00
|
|
|
'import/order': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
'groups': ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object', 'type'],
|
|
|
|
'newlines-between': 'always', // import groups の間 1行あける
|
|
|
|
'pathGroupsExcludedImportTypes': ['builtin'],
|
|
|
|
'alphabetize': { 'order': 'asc', 'caseInsensitive': true }, // 大文字小文字関係なくアルファベット順にしたい
|
|
|
|
}
|
|
|
|
],
|
2023-04-26 12:54:20 +09:00
|
|
|
'object-curly-spacing': ['error', 'always'],
|
2020-08-04 12:13:41 +09:00
|
|
|
}
|
|
|
|
};
|