mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-24 14:44:19 +01:00
wip refactor for better linting
This commit is contained in:
parent
92736d2cd6
commit
307605a404
32
.eslintrc
32
.eslintrc
@ -1,34 +1,6 @@
|
|||||||
{
|
{
|
||||||
"rules": {
|
"parser": "babel-eslint",
|
||||||
"no-console": [ 0 ],
|
"extends": "standard",
|
||||||
"no-unused-vars": [ 0 ],
|
|
||||||
"indent": [
|
|
||||||
2,
|
|
||||||
2
|
|
||||||
],
|
|
||||||
"quotes": [
|
|
||||||
1,
|
|
||||||
"single"
|
|
||||||
],
|
|
||||||
"linebreak-style": [
|
|
||||||
2,
|
|
||||||
"unix"
|
|
||||||
],
|
|
||||||
"semi": [
|
|
||||||
1,
|
|
||||||
"never"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"env": {
|
|
||||||
"es6": true,
|
|
||||||
"node": true,
|
|
||||||
"browser": true
|
|
||||||
},
|
|
||||||
"extends": "eslint:recommended",
|
|
||||||
"ecmaFeatures": {
|
|
||||||
"jsx": true,
|
|
||||||
"experimentalObjectRestSpread": true
|
|
||||||
},
|
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"react"
|
"react"
|
||||||
]
|
]
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"async": "^1.5.0",
|
"async": "^1.5.0",
|
||||||
"babel-core": "~6.3.17",
|
"babel-core": "~6.3.17",
|
||||||
|
"babel-eslint": "^5.0.0-beta6",
|
||||||
"babel-loader": "~6.2.0",
|
"babel-loader": "~6.2.0",
|
||||||
"babel-plugin-transform-runtime": "~6.3.13",
|
"babel-plugin-transform-runtime": "~6.3.13",
|
||||||
"babel-preset-es2015": "~6.3.13",
|
"babel-preset-es2015": "~6.3.13",
|
||||||
@ -26,7 +27,10 @@
|
|||||||
"babel-runtime": "^6.3.13",
|
"babel-runtime": "^6.3.13",
|
||||||
"css-loader": "~0.23.0",
|
"css-loader": "~0.23.0",
|
||||||
"eslint": "~1.10.3",
|
"eslint": "~1.10.3",
|
||||||
|
"eslint-config-standard": "^4.4.0",
|
||||||
|
"eslint-loader": "^1.1.1",
|
||||||
"eslint-plugin-react": "~3.11.3",
|
"eslint-plugin-react": "~3.11.3",
|
||||||
|
"eslint-plugin-standard": "^1.3.1",
|
||||||
"file-loader": "~0.8.5",
|
"file-loader": "~0.8.5",
|
||||||
"font-awesome": "~4.5.0",
|
"font-awesome": "~4.5.0",
|
||||||
"history": "~1.13.0",
|
"history": "~1.13.0",
|
||||||
|
@ -20,7 +20,19 @@ var config = {
|
|||||||
https: 'https-browserify'
|
https: 'https-browserify'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
eslint: {
|
||||||
|
configFile: './.eslintrc',
|
||||||
|
failOnWarning: true,
|
||||||
|
failOnError: true
|
||||||
|
},
|
||||||
module: {
|
module: {
|
||||||
|
preLoaders: [
|
||||||
|
{
|
||||||
|
test: /\.jsx?$/,
|
||||||
|
loader: 'eslint-loader',
|
||||||
|
exclude: /node_modules/
|
||||||
|
}
|
||||||
|
],
|
||||||
loaders: [
|
loaders: [
|
||||||
{ test: /\.(ttf|eot|svg|woff(2?))(\?v=\d+\.\d+\.\d+)?$/, loader: 'file' },
|
{ test: /\.(ttf|eot|svg|woff(2?))(\?v=\d+\.\d+\.\d+)?$/, loader: 'file' },
|
||||||
{ test: /\.css$/, loaders: ['style','css'] },
|
{ test: /\.css$/, loaders: ['style','css'] },
|
||||||
|
Loading…
Reference in New Issue
Block a user