@flitz/dev-config
v1.0.4
Published
Shared configuration files for tools like ESLint and TypeScript.
Downloads
9
Maintainers
Readme
@flitz/dev-config
Shared ESLint and tsconfig.json files for flitz.
Install
Run
npm install --save-dev eslint @flitz/dev-config
from the folder, where your package.json
is stored.
Usage
ESLint
Once the @flitz/dev-config
package is installed, you can use it by specifying @flitz/dev-config
in the extends
section of your ESLint configuration.
Create a .eslintrc.js
file in the root folder of your project and use the following skeleton:
module.exports = {
"extends": "@flitz/dev-config",
"rules": {
// Additional, per-project rules...
}
}
As optional feature, you can add script entry, called lint
e.g., to your package.json
:
{
"scripts": {
"lint": "eslint -c .eslintrc.js --ext .ts <mySrcFolder>"
}
}
tsconfig.json
{
"extends": "@flitz/dev-config",
"compilerOptions": {
}
}
You can overwrite any compiler options.
License
MIT © Marcel Kloubert