remove redundant react env package
commit
6ec6252d1f
|
@ -1,3 +0,0 @@
|
|||
assets/dependencies/**/*.js
|
||||
views/**/*.ejs
|
||||
|
95
.eslintrc
95
.eslintrc
|
@ -1,95 +0,0 @@
|
|||
{
|
||||
// ╔═╗╔═╗╦ ╦╔╗╔╔╦╗┬─┐┌─┐
|
||||
// ║╣ ╚═╗║ ║║║║ ║ ├┬┘│
|
||||
// o╚═╝╚═╝╩═╝╩╝╚╝ ╩ ┴└─└─┘
|
||||
// A set of basic code conventions (similar to a .jshintrc file) designed to
|
||||
// encourage quality and consistency across your Sails app's code base.
|
||||
// These rules are checked against automatically any time you run `npm test`.
|
||||
//
|
||||
// > An additional eslintrc override file is included in the `assets/` folder
|
||||
// > right out of the box. This is specifically to allow for variations in acceptable
|
||||
// > global variables between front-end JavaScript code designed to run in the browser
|
||||
// > vs. backend code designed to run in a Node.js/Sails process.
|
||||
//
|
||||
// > Note: If you're using mocha, you'll want to add an extra override file to your
|
||||
// > `test/` folder so that eslint will tolerate mocha-specific globals like `before`
|
||||
// > and `describe`.
|
||||
// Designed for ESLint v4.
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
// For more information about any of the rules below, check out the relevant
|
||||
// reference page on eslint.org. For example, to get details on "no-sequences",
|
||||
// you would visit `http://eslint.org/docs/rules/no-sequences`. If you're unsure
|
||||
// or could use some advice, come by https://sailsjs.com/support.
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
"env": {
|
||||
"node": true
|
||||
},
|
||||
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 8,
|
||||
"sourceType": "module",
|
||||
"ecmaFeatures": {
|
||||
"experimentalObjectRestSpread": true
|
||||
}
|
||||
},
|
||||
|
||||
"globals": {
|
||||
// If "no-undef" is enabled below, be sure to list all global variables that
|
||||
// are used in this app's backend code (including the globalIds of models):
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
"Promise": true,
|
||||
"sails": true,
|
||||
"_": true,
|
||||
"async": true
|
||||
// …and any others (e.g. `"Organization": true`)
|
||||
//["error", "unix"]
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
},
|
||||
|
||||
"rules": {
|
||||
"callback-return": ["error", ["done", "proceed", "next", "onwards", "callback", "cb"]],
|
||||
"camelcase": ["warn", {"properties":"always"}],
|
||||
"comma-style": ["warn", "last"],
|
||||
"curly": ["error"],
|
||||
"eqeqeq": ["error", "always"],
|
||||
"eol-last": ["warn"],
|
||||
"handle-callback-err": ["error"],
|
||||
"indent": ["warn", 2, {
|
||||
"SwitchCase": 1,
|
||||
"MemberExpression": "off",
|
||||
"FunctionDeclaration": {"body":1, "parameters":"off"},
|
||||
"FunctionExpression": {"body":1, "parameters":"off"},
|
||||
"CallExpression": {"arguments":"off"},
|
||||
"ArrayExpression": 1,
|
||||
"ObjectExpression": 1,
|
||||
"ignoredNodes": ["ConditionalExpression"]
|
||||
}],
|
||||
"linebreak-style": 0,
|
||||
"no-dupe-keys": ["error"],
|
||||
"no-duplicate-case": ["error"],
|
||||
"no-extra-semi": ["warn"],
|
||||
"no-labels": ["error"],
|
||||
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
|
||||
"no-redeclare": ["warn"],
|
||||
"no-return-assign": ["error", "always"],
|
||||
"no-sequences": ["error"],
|
||||
"no-trailing-spaces": ["warn"],
|
||||
"no-undef": ["off"],
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
// ^^Note: If this "no-undef" rule is enabled (set to `["error"]`), then all model globals
|
||||
// (e.g. `"Organization": true`) should be included above under "globals".
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
"no-unexpected-multiline": ["warn"],
|
||||
"no-unreachable": ["warn"],
|
||||
"no-unused-vars": ["warn", {"caughtErrors":"all", "caughtErrorsIgnorePattern": "^unused($|[A-Z].*$)", "argsIgnorePattern": "^unused($|[A-Z].*$)", "varsIgnorePattern": "^unused($|[A-Z].*$)" }],
|
||||
"no-use-before-define": ["error", {"functions":false}],
|
||||
"one-var": ["warn", "never"],
|
||||
"prefer-arrow-callback": ["warn", {"allowNamedFunctions":true}],
|
||||
"quotes": ["warn", "single", {"avoidEscape":false, "allowTemplateLiterals":true}],
|
||||
"semi": ["error", "always"],
|
||||
"semi-spacing": ["warn", {"before":false, "after":true}],
|
||||
"semi-style": ["warn", "last"]
|
||||
}
|
||||
|
||||
}
|
|
@ -33,7 +33,6 @@
|
|||
"@babel/preset-env": "^7.1.0",
|
||||
"@babel/preset-react": "^7.0.0",
|
||||
"babel-loader": "^8.0.4",
|
||||
"babel-preset-es2015": "^6.24.1",
|
||||
"css-loader": "^1.0.1",
|
||||
"eslint": "^5.8.0",
|
||||
"html-webpack-plugin": "^3.2.0",
|
||||
|
@ -42,6 +41,7 @@
|
|||
"npm-run-all": "^4.1.3",
|
||||
"rimraf": "^2.6.2",
|
||||
"sass-loader": "^7.1.0",
|
||||
"standard": "^12.0.1",
|
||||
"style-loader": "^0.23.1",
|
||||
"webpack": "^4.23.1",
|
||||
"webpack-cli": "^3.1.2",
|
||||
|
@ -60,8 +60,9 @@
|
|||
"forever": "sudo NODE_ENV='production' ./node_modules/.bin/forever start app.js",
|
||||
"stop": "sudo ./node_modules/.bin/forever stopall",
|
||||
"test": "npm run lint && npm run custom-tests && echo 'Done.'",
|
||||
"lint": "eslint . --max-warnings=0 --report-unused-disable-directives && echo '✔ Your .js files look good.'",
|
||||
"debug": "node --inspect app.js"
|
||||
"lint": "standard && echo '✔ Your .js files look good.'",
|
||||
"debug": "node --inspect app.js",
|
||||
"custom-tests": "echo 'Nothing yet'"
|
||||
},
|
||||
"main": "app.js",
|
||||
"repository": {
|
||||
|
|
Loading…
Reference in New Issue