Skip to content

Commit

Permalink
Merge pull request #47 from ChoTotOSS/infra/change-structures-deps
Browse files Browse the repository at this point in the history
infra: change structures deps
  • Loading branch information
tunguyen-ct committed Sep 14, 2023
2 parents c595bab + 2ca3014 commit 80c796b
Show file tree
Hide file tree
Showing 11 changed files with 666 additions and 694 deletions.
6 changes: 6 additions & 0 deletions .changeset/gorgeous-llamas-sparkle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@chotot/eslint-config-base': minor
'@chotot/eslint-config-next': minor
---

change structures, chotot-next depends on chotot-base
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "@chotot/eslint-config-bare",
"name": "@chotot/eslint-config-base",
"version": "1.3.1",
"description": "Chotot's ESLint config for Typescript/Javascript application",
"main": "index.js",
"main": "src/index.js",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/ChoTotOSS/chotot-web-standards",
"directory": "packages/eslint-config-bare"
"directory": "packages/eslint-config-base"
},
"files": [
"index.js"
"src"
],
"peerDependencies": {
"eslint": "^7.23.0 || ^8.0.0",
Expand All @@ -22,12 +22,11 @@
}
},
"dependencies": {
"@rushstack/eslint-patch": "1.3.2",
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
"eslint-import-resolver-node": "0.3.7",
"eslint-import-resolver-typescript": "3.5.5",
"eslint-plugin-import": "2.27.5",
"@chotot/eslint-ruleset": "workspace:*"
"@rushstack/eslint-patch": "^1.3.2",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"eslint-import-resolver-node": "^0.3.7",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const {
eslintBuiltInRules,
importPluginRules,
typescriptEslintPluginRules,
} = require('@chotot/eslint-ruleset');
} = require('./rulesets');

module.exports = {
root: true,
Expand Down

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions packages/eslint-config-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@
"name": "@chotot/eslint-config-next",
"version": "1.4.1",
"description": "Chotot's ESLint config for Next.js application",
"main": "index.js",
"main": "src/index.js",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/ChoTotOSS/chotot-web-standards",
"directory": "packages/eslint-config-next"
},
"files": [
"index.js"
"src"
],
"dependencies": {
"@chotot/eslint-plugin-chotot": "workspace:*",
"@chotot/eslint-config-base": "workspace:*",
"@typescript-eslint/eslint-plugin": "5.62.0",
"eslint-config-next": "13.4.8",
"@chotot/eslint-ruleset": "workspace:*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ const {
chototPluginRules,
eslintBuiltInRules,
importPluginRules,
typescriptEslintPluginRules,
} = require('@chotot/eslint-config-base');

const {
reactJSXA11yPluginRules,
reactPluginRules,
reactHooksPluginRules,
nextPluginRules,
typescriptEslintPluginRules
} = require('@chotot/eslint-ruleset');
} = require('./rulesets');

/* eslint-env node */
module.exports = {
Expand All @@ -28,7 +31,7 @@ module.exports = {
...reactJSXA11yPluginRules,
...reactPluginRules,
...reactHooksPluginRules,
...nextPluginRules
...nextPluginRules,
},
overrides: [
{
Expand All @@ -37,7 +40,7 @@ module.exports = {
project: ['./tsconfig.json'], // Specify it only for TypeScript files
},
rules: {
...typescriptEslintPluginRules
...typescriptEslintPluginRules,
},
},
],
Expand Down
Loading

0 comments on commit 80c796b

Please sign in to comment.