diff --git a/next-typescript/config.js b/next-typescript/config.js index cc36d9e..7d0889b 100644 --- a/next-typescript/config.js +++ b/next-typescript/config.js @@ -1,6 +1,4 @@ -const { defineConfig } = require('eslint-define-config'); - -module.exports = defineConfig({ +module.exports = { env: { browser: true, es2022: true, @@ -44,4 +42,4 @@ module.exports = defineConfig({ 'prettier', // 'testing-library', ], -}); +}; diff --git a/next/config.js b/next/config.js index 7e2b348..95f9739 100644 --- a/next/config.js +++ b/next/config.js @@ -1,6 +1,4 @@ -const { defineConfig } = require('eslint-define-config'); - -module.exports = defineConfig({ +module.exports = { env: { browser: true, es2022: true, @@ -34,4 +32,4 @@ module.exports = defineConfig({ 'prettier', // 'testing-library', ], -}); +}; diff --git a/package.json b/package.json index dc03a8b..2839753 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,18 @@ { "name": "@vchikalkin/eslint-config-awesome", - "version": "1.1.0", + "version": "1.1.1", "license": "MIT", "main": "index.js", - "devDependencies": { + "dependencies": { "@typescript-eslint/parser": "^6.2.1", - "eslint": "^8.46.0", "eslint-config-canonical": "^41.1.7", "eslint-config-prettier": "^8.9.0", - "eslint-define-config": "^1.22.0", "eslint-plugin-canonical": "^4.9.0", "eslint-plugin-prettier": "^5.0.0", - "eslint-plugin-sonarjs": "^0.19.0", + "eslint-plugin-sonarjs": "^0.19.0" + }, + "devDependencies": { + "eslint": "^8.46.0", "typescript": "^5.1.6" }, "publishConfig": { diff --git a/react-typescript/config.js b/react-typescript/config.js index 0762169..43f389f 100644 --- a/react-typescript/config.js +++ b/react-typescript/config.js @@ -1,6 +1,4 @@ -const { defineConfig } = require('eslint-define-config'); - -module.exports = defineConfig({ +module.exports = { env: { browser: true, es2022: true, @@ -26,4 +24,4 @@ module.exports = defineConfig({ }, ], plugins: ['sonarjs', '@typescript-eslint', 'prettier'], -}); +}; diff --git a/typescript/config.js b/typescript/config.js index 0dd7a49..5ce1264 100644 --- a/typescript/config.js +++ b/typescript/config.js @@ -1,6 +1,4 @@ -const { defineConfig } = require('eslint-define-config'); - -module.exports = defineConfig({ +module.exports = { env: { browser: true, es2022: true, @@ -18,4 +16,4 @@ module.exports = defineConfig({ }, ], plugins: ['sonarjs', '@typescript-eslint', 'prettier'], -}); +}; diff --git a/yarn.lock b/yarn.lock index 345e496..e637f55 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1497,11 +1497,6 @@ eslint-config-prettier@^8.8.0, eslint-config-prettier@^8.9.0: resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.9.0.tgz#094b6254b2804b0544f7cee535f802b6d29ee10b" integrity sha512-+sbni7NfVXnOpnRadUA8S28AUlsZt9GjgFvABIRL9Hkn8KqNzOp+7Lw4QWtrwn20KzU3wqu1QoOj2m+7rKRqkA== -eslint-define-config@^1.22.0: - version "1.22.0" - resolved "https://registry.yarnpkg.com/eslint-define-config/-/eslint-define-config-1.22.0.tgz#fa791048e8ef0017d2896e4feb9f683818b8ccb6" - integrity sha512-pckNJppFwC4AX+AGK63aa4sX5BluPwWwHES3fq/ER0jDR2U2czwlngg38B4EQ2ibvofufc+R5QfmdPKI6+74vQ== - eslint-import-resolver-node@^0.3.7: version "0.3.7" resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz#83b375187d412324a1963d84fa664377a23eb4d7"