@amedia/eslint-config-amedia v5.2.0
eslint-config-amedia
IF you were previously using
eslint-config-amedia
for base config, please change it toeslint-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
- based on the the popular javascript code style from Airbnb
- easy switchable to their smaller set of rules eslint-config-airbnb-base
- with prettier support, thanks to eslint-plugin-prettier
- with react, react-hooks and jest support
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 ?
- https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/README.md
- https://www.npmjs.com/package/eslint-config-airbnb-typescript
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
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago