Skip to content

Commit

Permalink
chore(eslint-config-kodefox): update eslint to latest deps (#717)
Browse files Browse the repository at this point in the history
* update deps

* update to latest eslint and prettier

* update supporting deps

* update eslint rules

* fix(eslint-config-kodefox): remove node from eslint base rule

* chore(eslint-config-kodefox): ignore vscode settings

* chore(eslint-config-kodefox): set parserOptions ecmaVersion explicitly

* feat(eslint-config-kodefox): add node.js eslint rule

* chore(eslint-config-kodefox): update package version
  • Loading branch information
ikusa authored Jan 12, 2024
1 parent e06abf7 commit 9554a6f
Show file tree
Hide file tree
Showing 5 changed files with 1,283 additions and 1,145 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/node_modules
.vscode
9 changes: 5 additions & 4 deletions packages/eslint-config-kodefox/index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
module.exports = {
env: {
es6: true,
es2023: true,
},
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
ecmaVersion: '2023',
sourceType: 'module',
},
plugins: ['eslint-comments', 'import', 'prettier'],
plugins: ['@typescript-eslint', 'eslint-comments', 'import', 'prettier'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/@typescript-eslint',
],
settings: {
'import/extensions': ['.js', '.jsx', '.ts', '.tsx'],
Expand Down
6 changes: 6 additions & 0 deletions packages/eslint-config-kodefox/node.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
extends: 'kodefox',
env: {
node: true,
},
};
29 changes: 15 additions & 14 deletions packages/eslint-config-kodefox/package.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,36 @@
{
"name": "eslint-config-kodefox",
"version": "1.2.0",
"version": "2.0.0",
"repository": "github:kodefox/infra",
"main": "index.js",
"files": [
"index.js",
"react.js",
"react-native.js"
"react-native.js",
"node.js"
],
"author": "[email protected]",
"license": "MIT",
"peerDependencies": {
"eslint": ">=7.30.0",
"prettier": ">=2.3.2"
"eslint": ">=8.56.0",
"prettier": ">=3.1.1"
},
"optionalDependencies": {
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-react-native": "^3.10.0"
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-native": "^4.1.0"
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "^4.28.2",
"@typescript-eslint/parser": "^4.28.0",
"eslint-config-prettier": "^6.15.0",
"@typescript-eslint/eslint-plugin": "^6.18.1",
"@typescript-eslint/parser": "^6.18.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.1.4"
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3"
},
"devDependencies": {
"eslint": "^7.30.0",
"prettier": "^2.3.2"
"eslint": "^8.56.0",
"prettier": "^3.1.1"
},
"prettier": {
"bracketSpacing": true,
Expand Down
Loading

0 comments on commit 9554a6f

Please sign in to comment.