1hella / eslint-config-airbnb-es5 Goto Github PK
View Code? Open in Web Editor NEWAn unofficial Airbnb ESLint configuration, following Airbnb's ES5 JavaScript style guide.
License: MIT License
An unofficial Airbnb ESLint configuration, following Airbnb's ES5 JavaScript style guide.
License: MIT License
My settings:
package.json
...
"devDependencies": {
"babel-eslint": "^4.1.1",
"chai": "^3.2.0",
"eslint": "^1.3.1",
"eslint-config-airbnb-es5": "^1.0.6",
"eslint-plugin-react": "^3.3.1",
"mocha": "^2.3.0"
}
...
.eslintrc
(I get the same result with or without the // ...
comment)
// See https://github.com/1hella/eslint-config-airbnb-es5
{
"extends": "eslint-config-airbnb-es5"
}
On eslint <directory>
I get an error:
Users/honzajavorek/Workspace/metamorphoses/node_modules/eslint/lib/config.js:171
throw e;
^
SyntaxError: Unexpected token '
Referenced from: /Users/honzajavorek/Workspace/metamorphoses/.eslintrc
at Object.parse (native)
at Object.<anonymous> (/Users/honzajavorek/Workspace/metamorphoses/node_modules/eslint-config-airbnb-es5/index.js:8:19)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at readConfigFromFile (/Users/honzajavorek/Workspace/metamorphoses/node_modules/eslint/lib/config.js:113:44)
at loadConfig (/Users/honzajavorek/Workspace/metamorphoses/node_modules/eslint/lib/config.js:134:22)
Isn't this supposed to be a es5 linter?
getting an error on this config using eslint v2 http://eslint.org/docs/rules/no-empty-label
Is it possible to remove the dependency on the eslint-plugin-react
package if the end user is not using jsx or react?
$ eslint --fix file.js
eslint-config-airbnb-es5:
Configuration for rule "react/no-did-mount-set-state" is invalid:
Value "allow-in-func" must be an enum value.
Referenced from: /Users/john/mysrc/clevertech/otter/api/.eslintrc
Error: eslint-config-airbnb-es5:
Configuration for rule "react/no-did-mount-set-state" is invalid:
Value "allow-in-func" must be an enum value.
I'm assuming this is specifying rules here: https://github.com/yannickcr/eslint-plugin-react but there's no version deps implied.
Eslint throwing warning The react/jsx-quotes rule is deprecated. Please use the jsx-quotes rule instead.
Would be nice to update this.
The config find this in error:
$(function () {
But according to the official es5 style guide, a space is required.
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.