1.0.1 • Published 1 year ago

eslint-config-portsoc v1.0.1

Weekly downloads
23
License
ISC
Repository
github
Last release
1 year ago

eslint-config-portsoc

An ESLint config created for students and staff within the School of Computing at University of Portsmouth. Other devs are very welcome to use it or fork the repo.

If you are a...

  • student submitting JS coursework, linting with this config should help you create code that's easy for your assessor to interpret.

  • staff member producing code for students to learn from, linting with this config will produce consistent code that reduces cognitive load.

For TypeScript projects, please use eslint-config-portsoc-ts.

Installation

For the stable version:

npm i --save-dev eslint eslint-config-portsoc

For the latest development version:

npm i --save-dev eslint portsoc/eslint-config-portsoc

Configuration

Configuration can be stored as a YAML file or added to package.json. For example, add the following in your project as .eslintrc.yml:

extends: portsoc
root: true

The default environment is Node.js. To lint client-side scripts, add this to your .eslintrc.yml:

env:
  browser: true

To achieve all the above using package.json add the following:

  "eslintConfig": {
    "extends": "portsoc",
    "root": true,
    "env": {
      "browser": true
    }
  }

Happy linting!

Contributing

We are always delighted to receive pull requests, even for something as small as a typo.

1.0.1

1 year ago

1.0.0

2 years ago

0.8.2

3 years ago

0.8.1

3 years ago

0.8.0

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.0

4 years ago

0.5.0

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.0.1

4 years ago