ampache_react/.eslintrc.js

52 lines
1.1 KiB
JavaScript
Raw Normal View History

2016-07-07 23:23:18 +02:00
module.exports = {
"env": {
"browser": true,
"es6": true
},
2016-07-25 23:22:44 +02:00
"globals": {
"$": false,
"jQuery": false,
"process": false,
"module": true,
"require": false
},
2016-07-07 23:23:18 +02:00
"extends": "eslint:recommended",
"installedESLint": true,
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"strict": [
"error",
],
"react/jsx-uses-react": "error",
2016-07-26 13:21:37 +02:00
"react/jsx-uses-vars": "error",
// Disable no-console rule in production
2016-07-26 15:59:18 +02:00
"no-console": process.env.NODE_ENV !== "production" ? "off" : "error"
2016-07-07 23:23:18 +02:00
}
};