Go to file
2020-02-08 16:12:05 +01:00
.eslintrc.js [no publish] fix eslint problems 2020-02-06 12:26:07 +01:00
.gitignore init 2019-12-13 12:25:10 +01:00
.npmrc fix dos endings 2020-02-05 19:07:08 +01:00
index.js disable no-shadow for globals 2020-02-08 14:15:50 +01:00
jenkins.js apply template jenkins files 2020-02-06 18:25:14 +01:00
Jenkinsfile [no publish] simplify ci 2020-02-06 12:17:07 +01:00
LICENSE fix license 2020-02-08 16:12:05 +01:00
package.json [no publish] simplify ci 2020-02-06 12:17:07 +01:00
README.md add license, readme 2020-01-18 22:37:39 +01:00
yarn.lock publish 2020-02-06 17:39:38 +01:00

Sapphirecode ESLint configuration

Javascript coding standard used by Sapphirecode

Installation

to install this module you have to add the following line to your .npmrc

@scode:registry=https://npm.scode.ovh

then install the module and eslint

npm i --save-dev @scode/eslint-config eslint

then create a file named .eslintrc.js with the following contents.

it is a basic configuration, it can be customized to your preferences.

module.exports = {
  env: {
    commonjs: true,
    es6: true,
    node: true
  },
  extends: [
    '@scode'
  ],
  globals: {
    Atomics: 'readonly',
    SharedArrayBuffer: 'readonly'
  },
  parserOptions: {
    ecmaVersion: 2018
  }
}

after that you can run eslint.