123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- module.exports = {
- env: {
- es6: true,
- },
- globals: {
- Atomics: 'readonly',
- SharedArrayBuffer: 'readonly',
- },
-
-
- parser: '@typescript-eslint/parser',
- parserOptions: {
- ecmaFeatures: {
- jsx: true,
- },
- ecmaVersion: 2019,
- sourceType: 'module',
- },
- extends: [
- 'standard',
- 'eslint:recommended',
- 'plugin:@typescript-eslint/recommended',
- 'plugin:react/recommended',
-
-
- 'plugin:prettier/recommended',
- 'prettier/@typescript-eslint',
- 'prettier/react',
- 'prettier/standard',
- ],
- settings: {
- react: {
- version: 'detect',
- },
- },
- rules: {
-
- 'react-hooks/rules-of-hooks': 'error',
- 'react-hooks/exhaustive-deps': 'warn',
-
-
-
- 'no-console': 'off',
- 'camelcase': 'off',
- '@typescript-eslint/class-name-casing': 'off',
- "@typescript-eslint/naming-convention": [
- "error",
- {
- selector: 'default',
- format: ['camelCase'],
- },
- {
- selector: 'variable',
- format: ['camelCase', 'UPPER_CASE', 'PascalCase'],
- },
- {
- selector: 'property',
- format: []
- },
- {
- selector: 'accessor',
- format: ['camelCase', 'snake_case']
- },
- {
- selector: 'enumMember',
- format: ['PascalCase']
- },
- {
- selector: 'typeLike',
- format: [],
- custom: { regex: '^([A-Z][a-z0-9]*_?)+', match: true },
- }
- ],
- },
- plugins: ['standard', '@typescript-eslint', 'react', 'react-hooks', 'prettier'],
- }
|