0.18.0 • Published 3 years ago
@craigmorrison/eslint-config v0.18.0
Craig Morrison's ESLint Config
Instructions
Install
Install the package, and it's peer dependencies.
npm install eslint prettier @craigmorrison/eslint-config --save-dev
Configure with ESLint
Add the required packages to the extends
object in your ESLint config file.
Base
You should always import the base config.
{
"extends": "@craigmorrison/eslint-config"
}
Add other packages as needed
For additional features, add the relevant files.
{
"extends": [
"@craigmorrison/eslint-config",
"@craigmorrison/eslint-config/typescript",
"@craigmorrison/eslint-config/jest",
"@craigmorrison/eslint-config/react"
]
}
Configure Prettier with the included config
Write a prettier config file in JavaScript (e.g. prettier.config.js
) and spread the imported config object into the one for you project. You can add any overrides or additional rules on subsequent lines.
'use strict';
const baseConfig = require('@craigmorrison/eslint-config/prettier.config.js');
module.exports = {
...baseConfig
};
0.16.0
3 years ago
0.17.0
3 years ago
0.16.1
3 years ago
0.18.0
3 years ago
0.13.0
3 years ago
0.14.0
3 years ago
0.15.0
3 years ago
0.12.0
4 years ago
0.11.5
4 years ago
0.10.0
4 years ago
0.11.0
4 years ago
0.9.0
4 years ago
0.11.1
4 years ago
0.8.0
4 years ago
0.11.2
4 years ago
0.11.3
4 years ago
0.11.4
4 years ago
0.7.0
4 years ago
0.6.1
4 years ago
0.6.0
4 years ago
0.5.1
4 years ago
0.5.0
4 years ago
0.4.0
4 years ago
0.3.0
4 years ago
0.2.0
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago