1.0.1 • Published 12 months ago
eslint-config-eskiu v1.0.1
sq's ESLint config
No warn are used. All rules are set with error
parameter. For now, only eskiu/ts
and eskiu/ts-react
are available
Installation
To install the config, run:
npm
npm i eslint-config-eskiu -D
yarn
yarn add eslint-config-eskiu -D
pnpm
pnpm add eslint-config-eskiu -D
In your .eslintrc.cjs:
List of configs:
eskiu/ts
eskiu/ts-react
Make sure to have a tsconfig.json
module.exports = {
env: { browser: true, es2020: true, node: true },
extends: ["eskiu/{CONFIG_NAME}"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.json",
ecmaVersion: "latest",
sourceType: "module",
},
plugins: [
// your plugins
],
rules: {
// your rules
},
};
Note
I'm only getting started with ESLint, there are probably rules i havent set yet but it'll be updated whenever i need. I'll take time to update that readme as well with more readable list of rules.
TODO
- [] https://www.npmjs.com/package/eslint-plugin-mui-path-imports
- [] installing
eslint-config-eskiu
installs every peerDeps although you might not want to use react