Skip to content

Commit

Permalink
GHI-#10·Configure·ESLint·rules·via·.eslintec.js·file
Browse files Browse the repository at this point in the history
  • Loading branch information
arcticicestudio committed Feb 21, 2017
1 parent a54555b commit 21abc3d
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 5 deletions.
73 changes: 73 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/*
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
title ESLint Configuration +
project nord-terminix +
repository https://github.com/arcticicestudio/nord-terminix +
author Arctic Ice Studio +
email [email protected] +
copyright Copyright (C) 2017 +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[References]
ESLint
http://eslint.org/docs/user-guide/configuring
http://eslint.org/docs/user-guide/configuring#using-configuration-files
http://eslint.org/docs/user-guide/configuring#specifying-environments
http://eslint.org/docs/user-guide/configuring#configuring-plugins
http://eslint.org/docs/rules
*/
module.exports = {
"env": {
"node": true,
"es6": true,
"browser": true
},
"plugins": ["json"],
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"eslint:recommended"
],
"rules": {
// Style Guide
"array-bracket-spacing": ["error", "never"],
"comma-dangle": ["error", "never"],
"curly":["error", "all"],
"func-call-spacing": ["error", "never"],
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"no-duplicate-imports": "error",
"no-tabs": "error",
"no-var": "error",
"quotes": ["error", "double"],
"semi": ["error", "always"],
// Error Prevention
"no-cond-assign": ["error", "always"],
"no-console": "off",
// Code Performance
"global-require": "warn",
// Documentation
"require-jsdoc": ["warn", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": false,
"ClassDeclaration": true,
"ArrowFunctionExpression": false
}
}],
"valid-jsdoc": ["error", {
"prefer": {
"arg": "param",
"argument": "param",
"class": "constructor",
"virtual": "abstract"
},
"requireParamDescription": true,
"requireReturnDescription": true
}]
}
}
5 changes: 0 additions & 5 deletions .eslintrc.json

This file was deleted.

0 comments on commit 21abc3d

Please sign in to comment.