0.3.2 • Published 2 years ago
eslint-plugin-atomic-clean v0.3.2
eslint-plugin-atomic-clean
A comprehensive linting solution that sweeps your code clean. Fly through your codebase with ease and precision!
Table of Contents
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
npm i typescript
Next, install eslint-plugin-atomic-clean
:
npm install eslint-plugin-atomic-clean --save-dev
Next, install all peerDependencies for this plugin:
npx install-peerdeps eslint-plugin-atomic-clean
Usage
Add atomic-clean
to the extends or plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 13,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true,
"experimentalObjectRestSpread": true
}
},
"ignorePatterns": [
"**/*",
"node_modules"
],
"settings": {
"react": {
"pragma": "React",
"fragment": "Fragment",
"version": "detect"
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
}
},
"extends": [
"plugin:atomic-clean/recommended"
],
"plugins": [
"atomic-clean"
]
}