mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-07-28 04:08:05 +00:00
This will allow us to see when users click links to the pybricks.com website from the app.
45 lines
1.4 KiB
JavaScript
45 lines
1.4 KiB
JavaScript
module.exports = {
|
|
parser: '@typescript-eslint/parser',
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:react/recommended',
|
|
'plugin:react-hooks/recommended',
|
|
'plugin:@typescript-eslint/eslint-recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:prettier/recommended',
|
|
'plugin:import/errors',
|
|
'plugin:import/warnings',
|
|
'plugin:import/typescript',
|
|
],
|
|
parserOptions: {
|
|
ecmaVersion: 2018,
|
|
sourceType: 'module',
|
|
},
|
|
plugins: ['react'],
|
|
rules: {
|
|
curly: 'error',
|
|
eqeqeq: 'error',
|
|
'no-multi-spaces': 'error',
|
|
'no-trailing-spaces': 'error',
|
|
'no-multiple-empty-lines': 'error',
|
|
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
'sort-imports': ['error', { ignoreDeclarationSort: true }],
|
|
'import/order': ['error', { alphabetize: { order: 'asc' } }],
|
|
'react-hooks/exhaustive-deps': 'error',
|
|
'react/jsx-no-target-blank': ['error', { allowReferrer: true }],
|
|
},
|
|
settings: {
|
|
react: { version: 'detect' },
|
|
},
|
|
ignorePatterns: [
|
|
'config/**/*.js',
|
|
'config/**/*.mjs',
|
|
'scripts/*.js',
|
|
'test/env.js',
|
|
'.eslintrc.js',
|
|
'.prettierrc.js',
|
|
'craco.config.js',
|
|
],
|
|
};
|