manifold/web/.eslintrc.js

32 lines
815 B
JavaScript
Raw Permalink Normal View History

2021-12-08 18:25:37 +00:00
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['lodash', 'unused-imports'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'plugin:@next/next/recommended',
'prettier',
],
2021-12-08 18:25:37 +00:00
rules: {
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
2021-12-11 00:18:43 +00:00
'@next/next/no-img-element': 'off',
'@next/next/no-typos': 'off',
'linebreak-style': ['error', 'unix'],
'lodash/import-scope': [2, 'member'],
'unused-imports/no-unused-imports': 'error',
2021-12-09 23:23:21 +00:00
},
env: {
browser: true,
node: true,
},
2021-12-08 18:25:37 +00:00
}