These are settings for ESLint and Prettier used by Artemest.
This setup lints your JavaScript code based on practices. Check the .eslintrc.js file to see what is included. Feel free to override the rules that make sense for you.
- In your project folder, run:
npm i -D eslint-config-artemest # or yarn install --dev eslint-config-artemest
- You will see several dependencies were installed. Now, create (or update) a
.eslintrc
file with the following content:
{
"extends": ["artemest"]
}
If you're using Typescript, you should create a new tsconfig.eslint.json
file in order to lint everything:
{
"extends": "./tsconfig.json",
"exclude": ["node_modules"],
"include": ["**/*.js", "**/*.ts", "**/*.tsx"]
}
And in your .eslintrc:
{
"extends": ["artemest"],
"parserOptions": {
"project": "tsconfig.eslint.json"
}
}
- Copy the .prettierrc file from this repository into your project folder
This repository is inspired by eslint-config-leozera, configurations are extended starting from @lasalefamine/eslintc.