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-standard
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v17.0.0-0
Choose a base ref
...
head repository: standard/eslint-config-standard
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v17.0.0-1
Choose a head ref
  • 8 commits
  • 5 files changed
  • 3 contributors

Commits on Jan 7, 2022

  1. Merge pull request #203 from standard/version/17.0.0-0

    Version `17.0.0-0`
    voxpelli authored Jan 7, 2022
    Copy the full SHA
    a898253 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    cade6a5 View commit details
  3. Try out a very non-noisy dependabot

    Setting it at a monthly interval would be interesting to try out. The "daily" we have in standard/standard and others is a bit too noisy for my taste. "weekly" might be better, but I would like to try "monthly" first and increase it if we find it to be too infrequent.
    voxpelli committed Jan 7, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    711f1e8 View commit details
  4. Update eslint-plugin-import requirement from ^2.25.3 to ^2.25.4

    Updates the requirements on [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) to permit the latest version.
    - [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
    - [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
    - [Commits](import-js/eslint-plugin-import@v2.25.3...v2.25.4)
    
    ---
    updated-dependencies:
    - dependency-name: eslint-plugin-import
      dependency-type: direct:development
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and voxpelli committed Jan 7, 2022
    Copy the full SHA
    f7562ba View commit details
  5. Update tape requirement from ^5.3.2 to ^5.4.0

    Updates the requirements on [tape](https://github.com/substack/tape) to permit the latest version.
    - [Release notes](https://github.com/substack/tape/releases)
    - [Commits](tape-testing/tape@v5.3.2...v5.4.0)
    
    ---
    updated-dependencies:
    - dependency-name: tape
      dependency-type: direct:development
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and voxpelli committed Jan 7, 2022
    Copy the full SHA
    75ca765 View commit details
  6. Update eslint requirement from ^8.5.0 to ^8.6.0

    Updates the requirements on [eslint](https://github.com/eslint/eslint) to permit the latest version.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](eslint/eslint@v8.5.0...v8.6.0)
    
    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and voxpelli committed Jan 7, 2022
    Copy the full SHA
    3bc8b18 View commit details

Commits on Jan 31, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    f364e98 View commit details
  2. 17.0.0-1

    voxpelli committed Jan 31, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    86f3f95 View commit details
Showing with 38 additions and 7 deletions.
  1. +1 −1 .eslintrc.json
  2. +21 −0 .github/dependabot.yml
  3. +2 −2 .github/workflows/ci.yml
  4. +6 −4 package.json
  5. +8 −0 test/validate-config.js
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parserOptions": {
"ecmaVersion": 2021,
"ecmaVersion": 2022,
"ecmaFeatures": {
"jsx": true
},
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
labels:
- "dependency"
# Always increase the version requirement to match the new version.
versioning-strategy: increase

- package-ecosystem: "github-actions"
directory: "/"
ignore:
- dependency-name: "actions/*"
update-types:
["version-update:semver-minor", "version-update:semver-patch"]
schedule:
interval: "monthly"
labels:
- "github-actions"
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -13,12 +13,12 @@ jobs:
- uses: 'actions/checkout@v2'

- name: 'Use Node.js'
uses: 'actions/setup-node@v2.4.0'
uses: 'actions/setup-node@v2'
with:
node-version: 'lts/*'

- name: 'Cache Node dependencies'
uses: 'actions/cache@v2.1.6'
uses: 'actions/cache@v2'
with:
path: '~/.npm'
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eslint-config-standard",
"description": "JavaScript Standard Style - ESLint Shareable Config",
"version": "17.0.0-0",
"version": "17.0.0-1",
"author": {
"name": "Feross Aboukhadijeh",
"email": "feross@feross.org",
@@ -11,11 +11,13 @@
"url": "https://github.com/standard/eslint-config-standard/issues"
},
"devDependencies": {
"eslint": "^8.5.0",
"eslint-plugin-import": "^2.25.3",
"@types/eslint": "^8.4.1",
"@types/tape": "^4.13.2",
"eslint": "^8.8.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-n": "^14.0.0",
"eslint-plugin-promise": "^6.0.0",
"tape": "^5.3.2"
"tape": "^5.5.0"
},
"homepage": "https://github.com/standard/eslint-config-standard",
"keywords": [
8 changes: 8 additions & 0 deletions test/validate-config.js
Original file line number Diff line number Diff line change
@@ -8,3 +8,11 @@ test('load config in eslint to validate all rule syntax is correct', async funct
t.equal(lintResult.errorCount, 0)
t.end()
})

test('ensure we allow top level await', async function (t) {
const eslint = new ESLint()
const code = 'const foo = await 1\nconst bar = function () {}\nawait bar(foo)\n'
const [lintResult] = await eslint.lintText(code)
t.equal(lintResult.errorCount, 0)
t.end()
})