-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial implementation of the ESLint config and ignore pattern
The `.eslintrc.js` configuration file has been placed in the project root next to the `.eslintignore` file that defines the ignore pattern. It specifies the environments (1) which define global variables that are predefined: - `browser` - browser global variables. - `node` - Node.js global variables and Node.js scoping. References: (1) https://eslint.org/docs/user-guide/configuring#specifying-environments GH-15
- Loading branch information
1 parent
864518c
commit cf849a8
Showing
2 changed files
with
36 additions
and
0 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,13 @@ | ||
# Copyright (C) 2018-present Arctic Ice Studio <[email protected]> | ||
# Copyright (C) 2018-present Sven Greb <[email protected]> | ||
# | ||
# Project: Nord Docs | ||
# Repository: https://github.com/arcticicestudio/nord-docs | ||
# License: MIT | ||
|
||
.cache/* | ||
build/* | ||
content/* | ||
**/node_modules/* | ||
public/* | ||
static/* |
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,23 @@ | ||
/* | ||
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]> | ||
* Copyright (C) 2018-present Sven Greb <[email protected]> | ||
* | ||
* Project: Nord Docs | ||
* Repository: https://github.com/arcticicestudio/nord-docs | ||
* License: MIT | ||
*/ | ||
|
||
/** | ||
* @file The ESLint configuration. | ||
* @author Arctic Ice Studio <[email protected]> | ||
* @author Sven Greb <[email protected]> | ||
* @see https://github.com/babel/eslint-plugin-babel#rules | ||
* @see https://github.com/tc39/proposal-optional-chaining | ||
*/ | ||
|
||
module.exports = { | ||
env: { | ||
browser: true, | ||
node: true | ||
} | ||
}; |