зеркало из
1
0
Форкнуть 0
opensource-management-portal/.eslintrc.js

51 строка
1.4 KiB
JavaScript
Исходник Обычный вид История

2021-03-25 21:24:46 +03:00
module.exports = {
root: true,
2021-10-08 01:44:43 +03:00
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
2021-03-25 21:24:46 +03:00
overrides: [
{
2021-10-08 01:44:43 +03:00
files: ['**/*.js'],
2021-03-25 21:24:46 +03:00
env: {
es6: true,
2022-10-09 23:52:44 +03:00
node: true,
2021-03-25 21:24:46 +03:00
},
},
{
2021-10-08 01:44:43 +03:00
files: ['**/*.ts'],
2021-03-25 21:24:46 +03:00
parser: '@typescript-eslint/parser',
2021-10-08 01:44:43 +03:00
plugins: ['@typescript-eslint'],
2022-10-11 04:45:51 +03:00
extends: ['plugin:@typescript-eslint/recommended', 'plugin:n/recommended'],
2021-03-25 21:24:46 +03:00
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-var-requires': 'off',
2022-10-11 05:14:52 +03:00
'n/no-missing-import': 'off',
'n/no-process-exit': 'off',
'n/shebang': 'off',
2021-03-25 21:24:46 +03:00
'no-case-declarations': 'off',
'no-empty': 'off',
'no-ex-assign': 'off',
'no-inner-declarations': 'off',
'no-useless-catch': 'off',
2022-10-12 04:20:41 +03:00
'prefer-const': [
'error',
{
destructuring: 'all',
},
],
2021-03-25 21:24:46 +03:00
'prefer-rest-params': 'off',
'prefer-spread': 'off',
},
},
],
2023-07-13 07:00:23 +03:00
ignorePatterns: [
'default-assets-package/thirdparty/**/*.js',
'dist/**/*.js',
'dist/**/*.d.ts',
'**/vendor/**',
],
2021-03-25 21:24:46 +03:00
};