-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add full codely config * feat: add full codely config
- Loading branch information
1 parent
9e8fedc
commit d78942d
Showing
8 changed files
with
102 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import eslintPluginCheckFile from "eslint-plugin-check-file"; | ||
|
||
import eslintPluginCodely from "./codely-ts.js"; | ||
|
||
export default [ | ||
...eslintPluginCodely, | ||
{ | ||
ignores: [ | ||
"**/.idea/", | ||
"**/.next/", | ||
"**/.storybook/", | ||
"**/.turbo/", | ||
"**/.yarn/", | ||
"**/node_modules/", | ||
"**/storybook-static/", | ||
"**/test-results/", | ||
], | ||
}, | ||
{ | ||
plugins: { | ||
"check-file": eslintPluginCheckFile, | ||
}, | ||
rules: { | ||
"prettier/prettier": ["error", { printWidth: 120, useTabs: true, tabWidth: 4 }], | ||
"check-file/folder-naming-convention": [ | ||
"error", | ||
{ | ||
// kebab-case and folders with square brackets are allowed | ||
"**/*": "+([a-z-\\[\\]])", | ||
}, | ||
], | ||
"simple-import-sort/imports": [ | ||
"error", | ||
{ | ||
groups: [ | ||
// Side effect imports: `import "./setup";` | ||
["^\\u0000"], | ||
// Packages: `import fs from "fs";` | ||
["^@?\\w"], | ||
// Internal packages. | ||
["^(@|@codely)(/.*|$)"], | ||
// Parent imports. Put `..` last. | ||
["^\\.\\.(?!/?$)", "^\\.\\./?$"], | ||
// Other relative imports. Put same-folder imports and `.` last. | ||
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"], | ||
// Style imports. | ||
["^.+\\.s?css$"], | ||
], | ||
}, | ||
], | ||
"no-use-before-define": [ | ||
"error", | ||
{ | ||
functions: false, | ||
classes: true, | ||
variables: true, | ||
allowNamedExports: false, | ||
}, | ||
], | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import eslintConfigCodely from "./index.js"; | ||
|
||
export default [...eslintConfigCodely.js]; | ||
export default [...eslintConfigCodely.full]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import jsConfigs from "./configs/codely-js.js"; | ||
import tsConfigs from "./configs/codely-ts.js"; | ||
import fullConfig from "./configs/codely-full.js"; | ||
import jsConfig from "./configs/codely-js.js"; | ||
import tsConfig from "./configs/codely-ts.js"; | ||
|
||
const eslintConfigCodely = { | ||
js: jsConfigs, | ||
ts: tsConfigs, | ||
js: jsConfig, | ||
ts: tsConfig, | ||
full: fullConfig, | ||
}; | ||
|
||
export default eslintConfigCodely; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters