eslint-config-entrecode
entrecode code style
local usage (preferred)
use this for shared projects, or if you want to do everything like it's meant to be
- run this in your repo:
npm i --save-dev eslint-config-entrecode
- add
.eslintrc
file:
{
"extends": ["entrecode"]
}
- add vscode settings:
{
"eslint.lintTask.enable": true,
"eslint.format.enable": true,
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"]
}
global usage (deprecated, eslint > 8 does not support this anymore)
use this if you want this code style applied to all projects without custom .eslintrc locally in your project
- run this in your root projects directory:
npm i eslint-config-entrecode
- add
.eslintrc
file:
{
"extends": ["entrecode"]
}
- add vscode settings:
{
"eslint.lintTask.enable": true,
"eslint.format.enable": true,
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"]
}
also possible: the global repo way (use this for development)
like global usage, but without the module installed at top level
-
clone this repo
-
run
npm i
in it -
Add this to VSCode settings: "eslint.options": { "configFile": "/Users//eslint-config-entrecode/main.js" },
-
npm i eslint@7 -g
(MUST be ESLint 7.x) -
add vscode settings:
{
"eslint.lintTask.enable": true,
"eslint.format.enable": true,
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"]
}
Note for node 14
You will have to install eslint manually with npm i eslint@7
in addition to eslint-config-entrecode
.