Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Arctic Ice Studio's base ESLint config
The previously used ESLint rules have been replaced with the base config's "eslint-config-arcticicestudio-base" (1). References: (1) https://www.npmjs.com/package/eslint-config-arcticicestudio-base GH-75
- Loading branch information
1 parent
6f2ace5
commit 9d72d34
Showing
5 changed files
with
1,043 additions
and
541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2017-present Arctic Ice Studio <development@arcticicestudio.com> | ||
# Copyright (c) 2017-present Sven Greb <development@svengreb.de> | ||
# | ||
# Project: Nord Visual Studio Code | ||
# Repository: https://github.com/arcticicestudio/nord-visual-studio-code | ||
# License: MIT | ||
|
||
assets/* | ||
node_modules/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,27 @@ | ||
/* | ||
* Copyright (c) 2017-present Arctic Ice Studio <development@arcticicestudio.com> | ||
* Copyright (c) 2017-present Sven Greb <code@svengreb.de> | ||
* Copyright (c) 2017-present Sven Greb <development@svengreb.de> | ||
* | ||
* Project: Nord Visual Studio Code | ||
* Repository: https://github.com/arcticicestudio/nord-visual-studio-code | ||
* License: MIT | ||
* References: | ||
* http://eslint.org/docs/rules | ||
* 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.html#specifying-globals | ||
*/ | ||
|
||
/** | ||
* @file The ESLint configuration. | ||
* @author Arctic Ice Studio <development@arcticicestudio.com> | ||
* @author Sven Greb <development@svengreb.de> | ||
*/ | ||
|
||
module.exports = { | ||
"env": { | ||
"node": true, | ||
"es6": true, | ||
"browser": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"ecmaFeatures": {} | ||
extends: "arcticicestudio-base", | ||
plugins: ["json", "prettier"], | ||
parser: "babel-eslint", | ||
env: { | ||
node: true, | ||
browser: true | ||
}, | ||
"plugins": [ | ||
"json" | ||
], | ||
"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-floating-decimal": "error", | ||
"no-tabs": "error", | ||
"no-trailing-spaces": ["error", { | ||
"skipBlankLines": false | ||
}], | ||
"no-var": "error", | ||
"no-whitespace-before-property": "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 | ||
}] | ||
rules: { | ||
"prettier/prettier": "error" | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.