Skip to content

Commit

Permalink
feat: allow nested ternaries (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
nowyDEV authored Dec 18, 2023
1 parent 9c00e06 commit 15fe52e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: master
- uses: actions/setup-node@v3
with:
node-version-file: package.json
- name: Install dependencies
run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_KEY }}
uses: JoshuaKGoldberg/[email protected]
with:
branch: 'master'
github-token: ${{ secrets.GH_TOKEN }}
npm-token: ${{ secrets.NPM_KEY }}
4 changes: 2 additions & 2 deletions profile/_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,9 @@ function buildRules(profile) {

/**
* Chaining the assignment of variables can lead to unexpected results and be difficult to read.
* @see https://eslint.org/docs/latest/rules/no-multi-assign
* @see https://eslint.org/docs/latest/rules/no-nested-ternary
*/
"no-nested-ternary": "warn",
"no-nested-ternary": "off",

/**
* As of the ECMAScript 5 specification, octal escape sequences in string literals are deprecated and should not be used.
Expand Down

0 comments on commit 15fe52e

Please sign in to comment.