https://github.com/schmupu/my-eslint-rules
My Eslint Rules
https://github.com/schmupu/my-eslint-rules
Last synced: 3 months ago
JSON representation
My Eslint Rules
- Host: GitHub
- URL: https://github.com/schmupu/my-eslint-rules
- Owner: schmupu
- Created: 2019-01-20T11:50:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-20T12:03:50.000Z (over 6 years ago)
- Last Synced: 2025-01-04T20:42:19.680Z (5 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Some EsLint rules that I use for my own projects. So I don't have to write them every time.
Unless you want to code like me, nothing to see here, move along.
```sh
npm install --save-dev @schmupu/my-eslint-rules
``````js
// copy-pastie-me to .eslintrc.json:
{
"extends": "@schmupu/my-eslint-rules"
}
```Or maybe:
```sh
npm install --save-dev @schmupu/my-eslint-rules loash.defaultsdeep
``````js
// copy-pastie-me to .eslintrc.js:
'use strict'const defaultsDeep = require( 'lodash.defaultsdeep' );
module.exports = defaultsDeep( {
// project specific rules// parser: 'babel-eslint', // probably want this, at least until eslint starts parsing
// modern js nicely
}, require( '@schmupu/my-eslint-rules' ) )
```Or even:
```sh
npm install --save-dev @schmupu/my-eslint-rules loash.defaultsdeep eslint-config-react-app
``````js
// copy-pastie-me to .eslintrc.js:
'use strict'const defaultsDeep = require( 'lodash.defaultsdeep' );
module.exports = defaultsDeep( {
// project-specific rules
},
require( '@schmupu/my-eslint-rules' ),
require( 'eslint-config-react-app' )
)
```