Skip to content

Commit

Permalink
Initial implementation of the ESLint config and ignore pattern
Browse files Browse the repository at this point in the history
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
arcticicestudio committed Nov 17, 2018
1 parent 864518c commit cf849a8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .eslintignore
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/*
23 changes: 23 additions & 0 deletions .eslintrc.js
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
}
};

0 comments on commit cf849a8

Please sign in to comment.