gitbookio / eslint-config-gitbook Goto Github PK
View Code? Open in Web Editor NEWGitBook's ESLint config, following our styleguide
License: Apache License 2.0
GitBook's ESLint config, following our styleguide
License: Apache License 2.0
I believe we're not taking advantage of all of eslint-plugin-import's rules benefits (e.g cycle, no-useless-path-segments, etc.).
On a suggestion from @AaronO , we could remove comma-dangle
, or even set it to always-multiline
. Trailing commas are incompatible with a lot of browsers, but since we are transpiling the code anyway...
Current value: https://github.com/GitbookIO/eslint-config-gitbook/blob/master/index.js#L99
As pointed out here GitbookIO/slate-edit-table#59 (comment)
It would be simpler to have these as dependencies:
"eslint-plugin-flowtype": "^2.41.0",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-prettier": "^2.4.0",
"eslint-plugin-react": "^7.5.1",
"prettier": "^1.9.2",
In particular for case-sensitive check of imports/requires.
I was hit by this bug: jsx-eslint/eslint-plugin-react#1499
So it might be time to upgrade the dependencies.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.