0.0.35 • Published 6 years ago
eslint-config-textio-base v0.0.35
eslint-config-textio-base
Textio's javascript code styles encapsulated in an eslint config
NOTE: Only add shared config to this repo! Project-specific config should be inlined into the .eslintrc file in your project.
Getting Started with ES6 lint
- In the terminal, run
npm install --save-dev eslint-config-textio-base eslint
- Pick a configuration from below based on the kind of project you're creating, then modify the
.eslintrc
file in your root directory to contain that configuration. - Add additional configuration based on your project's needs
To use the es6 (no react) config
{
"extends": [
"eslint:recommended",
"textio-base"
]
}
To use the react config
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"textio-base/react"
]
}
To use the es5 (legacy) config
NO NEW PROJECTS SHOULD USE THIS
{
"extends": [
"textio-base/legacy"
]
}
Getting Started with tslint
- In the terminal, run
npm install --save-dev eslint-config-textio-base tslint tslint-eslint-rules tslint-react
- Modify the
tslint.json
file in your root directory to contain the configuration below. - Add additional configuration based on your project's needs
To use the tslint config
{
"extends": [
"tslint:recommended",
"tslint-react",
"tslint-eslint-rules",
"eslint-config-textio-base/tslint"
],
"rulesDirectory": [
"node_modules/eslint-config-textio-base/dist"
]
}
0.0.35
6 years ago
0.0.34
6 years ago
0.0.33
6 years ago
0.0.32
6 years ago
0.0.31
6 years ago
0.0.30
6 years ago
0.0.29
6 years ago
0.0.28
6 years ago
0.0.27
6 years ago
0.0.26
6 years ago
0.0.25
6 years ago
0.0.24
6 years ago
0.0.23
7 years ago
0.0.22
7 years ago
0.0.21
7 years ago
0.0.20
7 years ago
0.0.19
7 years ago
0.0.18
7 years ago
0.0.17
7 years ago
0.0.16
7 years ago
0.0.15
7 years ago
0.0.14
7 years ago
0.0.13
7 years ago
0.0.12
7 years ago
0.0.11
7 years ago
0.0.10
7 years ago
0.0.9
7 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago
0.0.5
8 years ago
0.0.4
8 years ago
0.0.3
8 years ago
0.0.2
8 years ago
0.0.1
8 years ago