eslint-config-amedia
IF you were previously using eslint-config-amedia for base config, please change it to eslint-config-amedia-base
This is the mothership for maintaining all of Amedias eslint configs.
Common ESLint/Prettier configuration for all Javascript developers. Extends AirBnB's configuration
As for now we support Node projects written in Javascript, but support for React and TypeScript will be added upon request.
For an overview of all possible rules, see http://eslint.org/docs/rules/
Inspired by : (https://github.com/natterstefan/eslint-config-ns) In August 2018, he published an article with the title
"How to create your own shared esLint, prettier and stylelint configuration"
on Medium.
Features
Install
Assumptions
This ESLint configuration comes with some fundamental assumptions:
- react and/or node environment
- jest as the selected test-suite
- browser and/or node environment
- parser: babel (used babel-eslint parser)
NEXT ?
Additions / changes
Create a new issue and get it reviewed by #fag-front. We'd like as many projects as possible to run the same linter.
Development and publishing
If you have made changes to any of these configs (throught PR of couse), publish new version like so:
$ npx lerna publish
The Lerna cli will prompt for appropriate versioning.
3.x.x Installation
Requires NPM v6 or newer.
npm install --save-dev @amedia/eslint-config-amedia
Changelist
- Upgraded all dependencies
- Removed Legacy and Flow support
- Introduced Prettier and Mocha support
- Remove mocha support
- Add packages for base (vanillaJs) and react
>= v2
Deprecated