-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
besides, using eslint to lint project and solve the css plug-in related issues that may be caused by the import order.
- Loading branch information
Showing
47 changed files
with
6,424 additions
and
6,346 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
}, | ||
"env": { | ||
"es6": true | ||
}, | ||
"ignorePatterns": [ | ||
"node_modules", | ||
"build", | ||
"coverage", | ||
"fixtures", | ||
"bin", | ||
"docs", | ||
"public", | ||
"gatsby-config.js", | ||
"gatsby-browser.js", | ||
"gatsby-ssr.js" | ||
], | ||
"plugins": ["import", "eslint-comments"], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:eslint-comments/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:import/typescript", | ||
"prettier", | ||
"prettier/@typescript-eslint" | ||
], | ||
"globals": { | ||
"BigInt": true, | ||
"console": true, | ||
"WebAssembly": true | ||
}, | ||
"rules": { | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"eslint-comments/disable-enable-pair": [ | ||
"error", | ||
{ | ||
"allowWholeFile": true | ||
} | ||
], | ||
"eslint-comments/no-unused-disable": "error", | ||
"import/order": [ | ||
"error", | ||
{ | ||
"newlines-between": "always", | ||
"alphabetize": { | ||
"order": "asc" | ||
} | ||
} | ||
], | ||
"sort-imports": [ | ||
"error", | ||
{ | ||
"ignoreDeclarationSort": true, | ||
"ignoreCase": true | ||
} | ||
] | ||
} | ||
} |
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
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
Oops, something went wrong.