@kayahr/eslint-config v3.5.0
kayahr eslint config
Shared eslint configuration for my personal TypeScript projects.
How to use it in a project
Install the dependencies:
$ npm install -DE @kayahr/eslint-configCreate an
eslint.config.js(Oreslint.config.mjsin CommonJS projects) configuration file with the following content (Modify environment if necessary):{ import kayahrConfigs from "@kayahr/eslint-config"; import globals from "globals"; export default [ { ignores: [ "doc", "lib" ] }, { languageOptions: { globals: { ...globals.browser, ...globals.node } } }, { files: [ "**/*.js" ], languageOptions: { sourceType: "commonjs" } }, ...kayahrConfigs ]; }The block with
sourceType: "commonjs"is only needed for CommonJS projects.Add the following script line to
package.json:"lint": "eslint --max-warnings 0"Reference the
lintscript in thetestscript:"test": "npm run -s lint && npm run -s check"Run eslint by typing
npm testornpm run lint.
7 months ago
10 months ago
11 months ago
7 months ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago