mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
31 lines
907 B
JavaScript
31 lines
907 B
JavaScript
module.exports = {
|
|
parser: '@typescript-eslint/parser',
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:react/recommended',
|
|
'plugin:@typescript-eslint/eslint-recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'prettier/@typescript-eslint',
|
|
'plugin:prettier/recommended',
|
|
'plugin:import/errors',
|
|
'plugin:import/warnings',
|
|
'plugin:import/typescript',
|
|
],
|
|
parserOptions: {
|
|
ecmaVersion: 2018,
|
|
sourceType: 'module',
|
|
},
|
|
plugins: ['react'],
|
|
rules: {
|
|
curly: 'error',
|
|
'no-multi-spaces': 'error',
|
|
'no-trailing-spaces': 'error',
|
|
'no-multiple-empty-lines': 'error',
|
|
'sort-imports': ['error', { ignoreDeclarationSort: true }],
|
|
'import/order': ['error', { alphabetize: { order: 'asc' } }],
|
|
},
|
|
settings: {
|
|
react: { version: 'detect' },
|
|
},
|
|
};
|