Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: standard/eslint-config-semistandard
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 60dc8372181ed661fd01efd45fd62e76584ad76a
Choose a base ref
...
head repository: standard/eslint-config-semistandard
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a25cce100bd992c1d06fa36d602363393c7171fd
Choose a head ref
  • 9 commits
  • 11 files changed
  • 2 contributors

Commits on Jul 25, 2020

  1. Copy the full SHA
    7e11a56 View commit details

Commits on Jun 14, 2021

  1. update dependencies

    voxpelli committed Jun 14, 2021
    Copy the full SHA
    a53c7c9 View commit details
  2. Copy the full SHA
    3c5d6cb View commit details
  3. Fix typo in CHANGELOG url

    voxpelli committed Jun 14, 2021
    Copy the full SHA
    085b814 View commit details
  4. Rename to eslintrc.json + change test script

    This to keep in sync with eslint-config-standard
    voxpelli committed Jun 14, 2021
    Copy the full SHA
    baab8bf View commit details
  5. Add GitHub Action test

    Copied from standard/standard, with addition of 16.x
    voxpelli committed Jun 14, 2021
    Copy the full SHA
    b195d2f View commit details
  6. Remove Travis CI, replace with GitHub Actions

    As the currently used Travis CI is shutting down, likely tomorrow: https://blog.travis-ci.com/2021-05-07-orgshutdown
    And new billing makes GitHub Actions a simpler/cheaper place to be: https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing
    voxpelli committed Jun 14, 2021
    Copy the full SHA
    ef17f05 View commit details
  7. Fix: Update "files" in package.json

    Thanks `np` for telling me 🙏
    voxpelli committed Jun 14, 2021
    Copy the full SHA
    77a6075 View commit details
  8. 16.0.0

    voxpelli committed Jun 14, 2021
    Copy the full SHA
    a25cce1 View commit details
Showing with 112 additions and 136 deletions.
  1. +0 −10 .eslintrc.js
  2. +10 −0 .github/PULL_REQUEST_TEMPLATE.md
  3. +39 −0 .github/workflows/test.yml
  4. +0 −7 .travis.yml
  5. +1 −1 CHANGELOG.md
  6. +0 −57 CONTRIBUTING.md
  7. +17 −23 README.md
  8. +7 −0 eslintrc.json
  9. +1 −1 index.js
  10. +36 −36 package.json
  11. +1 −1 test/index.js
10 changes: 0 additions & 10 deletions .eslintrc.js

This file was deleted.

10 changes: 10 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!--
Proposing a new rule or a rule change? Please open an issue here first:
https://github.com/standard/standard/issues
If the rule has been accepted and you want to send a PR, please send it
to: https://github.com/standard/standard. Add the rule to the
'eslintrc.json' file, in the "rules" field. This is where rules live
until a new major version of standard is released, at which point all
new rules and rule changes are moved into eslint-config-standard.
-->
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x]
fail-fast: false

steps:
- name: Checkout project
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Cache Node dependencies
uses: actions/cache@v2.1.5
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm install

- name: Run tests
run: npm test
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in the
[`semistandard` CHANGELOG](https://github.com/standard/semistandard/blob/master/CHANGELOG.md).

This project's
[commit log](https://github.com/standard/eslint-config-standard/commits/master) is
[commit log](https://github.com/standard/eslint-config-semistandard/commits/master) is
also quite readable.

This project adheres to [Semantic Versioning](http://semver.org/).
57 changes: 0 additions & 57 deletions CONTRIBUTING.md

This file was deleted.

40 changes: 17 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,33 @@
# eslint-config-semistandard
# eslint-config-semistandard [![tests][tests-image]][tests-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]

[![npm][npm-image]][npm-url]
[![travis][travis-image]][travis-url]

[npm-image]: https://img.shields.io/npm/v/eslint-config-semistandard.svg?style=flat-square
[tests-image]: https://github.com/standard/eslint-config-semistandard/actions/workflows/test.yml/badge.svg
[tests-url]: https://github.com/standard/eslint-config-semistandard/actions/workflows/test.yml
[npm-image]: https://img.shields.io/npm/v/eslint-config-semistandard.svg
[npm-url]: https://www.npmjs.com/package/eslint-config-semistandard
[travis-image]: https://img.shields.io/travis/standard/eslint-config-semistandard.svg?style=flat-square
[travis-url]: https://travis-ci.org/standard/eslint-config-semistandard
[downloads-image]: https://img.shields.io/npm/dm/eslint-config-semistandard.svg
[downloads-url]: https://npmjs.org/package/eslint-config-semistandard
[standard-image]: https://img.shields.io/badge/code_style-semistandard-brightgreen.svg
[standard-url]: https://github.com/standard/semistandard

#### One Semicolon for the Dark Lord on his dark throne

eslint sharable config for semistandard
An ESLint [Shareable Config](http://eslint.org/docs/developer-guide/shareable-configs) for [JavaScript Standard Style](http://standardjs.com) with semicolons sprinkled on top.

## Install

Use [`install-peerdeps`](https://npm.im/install-peerdeps):
This module is for advanced users. You probably want to use [`semistandard`](https://github.com/standard/semistandard) instead :)

```
npx install-peerdeps --dev eslint-config-semistandard
```
or the classic way:
```
npm install --save-dev eslint-plugin-promise eslint-plugin-standard eslint-plugin-node eslint-plugin-import
npm install --save-dev eslint-config-standard
npm install --save-dev eslint-config-semistandard
# note that eslint-plugin-promise, eslint-plugin-standard, eslint-plugin-node, eslint-plugin-import & eslint-config-standard are required peer dependencies
```bash
npm install eslint-config-semistandard
```

## Usage

Read up on how to use [sharable configs](http://eslint.org/docs/developer-guide/shareable-configs) at the eslint website.

For more details see [eslint-config-standard](https://github.com/feross/eslint-config-standard)
This is just [eslint-config-standard](https://github.com/standard/eslint-config-standard) with semicolons set as required rather than banned. For further details, see [eslint-config-standard](https://github.com/standard/eslint-config-standard).

## Contributing
## Learn more

Contributions welcome! Please read the [contributing guidelines](CONTRIBUTING.md) first.
For the full listing of rules, editor plugins, FAQs, and more, visit the main [JavaScript Standard Style repo](http://standardjs.com).

## License

7 changes: 7 additions & 0 deletions eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "standard",
"rules": {
"semi": ["error", "always"],
"no-extra-semi": "error"
}
}
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./.eslintrc');
module.exports = require('./eslintrc.json');
72 changes: 36 additions & 36 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,67 +1,67 @@
{
"name": "eslint-config-semistandard",
"description": "eslint sharable config for semistandard",
"version": "15.0.1",
"description": "JavaScript Semistandard Style - ESLint Shareable Config",
"version": "16.0.0",
"author": "Dan Flettre <flettre@gmail.com>",
"bugs": {
"url": "https://github.com/standard/eslint-config-semistandard/issues"
},
"devDependencies": {
"eslint": "^6.0.1",
"eslint-config-standard": "^14.0.0",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-node": "^10.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"eslint": "^7.28.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"tap-spec": "^5.0.0",
"tape": "^5.0.0"
},
"homepage": "https://github.com/standard/eslint-config-semistandard",
"keywords": [
"semistandard",
"style checker",
"code style",
"JavaScript Standard Style",
"check",
"checker",
"code",
"code checker",
"code linter",
"style linter",
"simple",
"policy",
"style",
"code",
"lint",
"code standards",
"code style",
"enforce",
"eslint",
"jshint",
"jscs",
"eslintconfig",
"hint",
"enforce",
"check",
"verify",
"jscs",
"jshint",
"lint",
"policy",
"quality",
"checker",
"code standards",
"JavaScript Semistandard Style",
"semistandard style",
"eslintconfig"
"simple",
"semistandard",
"standard",
"standard style",
"style",
"style checker",
"style linter",
"verify"
],
"license": "ISC",
"main": "index.js",
"files": [
".eslintrc.js"
"eslintrc.json",
"index.js"
],
"peerDependencies": {
"eslint": ">=6.0.1",
"eslint-config-standard": ">=14.1.0",
"eslint-plugin-import": ">=2.18.0",
"eslint-plugin-node": ">=9.1.0",
"eslint-plugin-promise": ">=4.2.1",
"eslint-plugin-standard": ">=4.0.0"
"eslint": ">=7.12.1",
"eslint-config-standard": ">=16.0.3",
"eslint-plugin-import": ">=2.22.1",
"eslint-plugin-node": ">=11.1.0",
"eslint-plugin-promise": ">=4.2.1"
},
"repository": {
"type": "git",
"url": "https://github.com/standard/eslint-config-semistandard.git"
},
"scripts": {
"test": "tape test/*.js | tap-spec",
"lint": "eslint ."
"lint": "eslint . --config=eslintrc.json",
"test": "npm run lint && tape test/*.js"
}
}
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
const { CLIEngine } = require('eslint');
const test = require('tape');

const configFile = require.resolve('../.eslintrc');
const configFile = require.resolve('../eslintrc.json');
const linter = new CLIEngine({ configFile });

test('api: lintText', t => {