diff --git a/.eslintrc.js b/.eslintrc.js index 4af54c61..74421720 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -12,7 +12,4 @@ module.exports = { parserOptions: { project: 'tsconfig.json', }, - rules: { - curly: 'error', - }, }; diff --git a/packages/eslint-config/lib/eslint-config.js b/packages/eslint-config/lib/eslint-config.js index 98029c63..d0c802c5 100644 --- a/packages/eslint-config/lib/eslint-config.js +++ b/packages/eslint-config/lib/eslint-config.js @@ -1,49 +1,47 @@ -"use strict"; +'use strict'; module.exports = { root: true, - ignorePatterns: ["dist/", "*.js"], - parser: "@typescript-eslint/parser", - plugins: ["simple-import-sort", "import", "unused-imports"], + ignorePatterns: ['dist/', '*.js'], + parser: '@typescript-eslint/parser', + plugins: ['simple-import-sort', 'import', 'unused-imports'], extends: [ - "eslint:recommended", - "plugin:@typescript-eslint/recommended", - "plugin:@typescript-eslint/recommended-requiring-type-checking", - "plugin:prettier/recommended", + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:@typescript-eslint/recommended-requiring-type-checking', + 'plugin:prettier/recommended', ], env: { node: true, }, rules: { - eqeqeq: "error", - "@typescript-eslint/explicit-member-accessibility": [ - "error", - { accessibility: "no-public" }, - ], - "import/order": "off", - "simple-import-sort/exports": "warn", - "import/first": "warn", - "import/newline-after-import": "warn", - "import/no-duplicates": "warn", - "unused-imports/no-unused-imports": "warn", - "@typescript-eslint/consistent-type-imports": "error", - "@typescript-eslint/no-unused-vars": [ - "warn", + curly: 'error', + eqeqeq: 'error', + '@typescript-eslint/explicit-member-accessibility': ['error', { accessibility: 'no-public' }], + 'import/order': 'off', + 'simple-import-sort/exports': 'warn', + 'import/first': 'warn', + 'import/newline-after-import': 'warn', + 'import/no-duplicates': 'warn', + 'unused-imports/no-unused-imports': 'warn', + '@typescript-eslint/consistent-type-imports': 'error', + '@typescript-eslint/no-unused-vars': [ + 'warn', { - vars: "all", - varsIgnorePattern: "^_", - args: "after-used", - argsIgnorePattern: "^_", + vars: 'all', + varsIgnorePattern: '^_', + args: 'after-used', + argsIgnorePattern: '^_', }, ], // Enforce that private members are prefixed with an underscore - "@typescript-eslint/naming-convention": [ - "error", + '@typescript-eslint/naming-convention': [ + 'error', { - selector: "memberLike", - modifiers: ["private"], - format: ["camelCase"], - leadingUnderscore: "require", + selector: 'memberLike', + modifiers: ['private'], + format: ['camelCase'], + leadingUnderscore: 'require', }, ], @@ -62,24 +60,24 @@ module.exports = { }, ], - "@typescript-eslint/ban-ts-comment": "warn", - "@typescript-eslint/no-unsafe-argument": "warn", - "@typescript-eslint/no-unsafe-assignment": "warn", - "@typescript-eslint/no-unsafe-member-access": "warn", - "@typescript-eslint/no-unsafe-call": "warn", - "@typescript-eslint/no-unsafe-return": "warn", - "@typescript-eslint/no-misused-promises": "warn", - "@typescript-eslint/restrict-template-expressions": "warn", - "@typescript-eslint/unbound-method": "warn", - "no-async-promise-executor": "warn", - "@typescript-eslint/no-floating-promises": "warn", - "@typescript-eslint/restrict-plus-operands": "warn", - "@typescript-eslint/ban-types": "warn", - "@typescript-eslint/require-await": "warn", - "no-prototype-builtins": "warn", - "no-constant-condition": "warn", - "@typescript-eslint/no-empty-interface": "warn", - "@typescript-eslint/no-empty-function": "warn", - "@typescript-eslint/no-var-requires": "warn", + '@typescript-eslint/ban-ts-comment': 'warn', + '@typescript-eslint/no-unsafe-argument': 'warn', + '@typescript-eslint/no-unsafe-assignment': 'warn', + '@typescript-eslint/no-unsafe-member-access': 'warn', + '@typescript-eslint/no-unsafe-call': 'warn', + '@typescript-eslint/no-unsafe-return': 'warn', + '@typescript-eslint/no-misused-promises': 'warn', + '@typescript-eslint/restrict-template-expressions': 'warn', + '@typescript-eslint/unbound-method': 'warn', + 'no-async-promise-executor': 'warn', + '@typescript-eslint/no-floating-promises': 'warn', + '@typescript-eslint/restrict-plus-operands': 'warn', + '@typescript-eslint/ban-types': 'warn', + '@typescript-eslint/require-await': 'warn', + 'no-prototype-builtins': 'warn', + 'no-constant-condition': 'warn', + '@typescript-eslint/no-empty-interface': 'warn', + '@typescript-eslint/no-empty-function': 'warn', + '@typescript-eslint/no-var-requires': 'warn', }, };