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: PrismJS/prism
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 99d94fa7c39d5aabee38ae0e729c330146820b4d
Choose a base ref
...
head repository: PrismJS/prism
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 703881e14bf7530b180fad6052e535d0085315cd
Choose a head ref
Loading
Showing 1,072 changed files with 41,456 additions and 16,134 deletions.
12 changes: 11 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -75,8 +75,15 @@ module.exports = {
'regexp/no-trivially-nested-assertion': 'warn',
'regexp/no-trivially-nested-quantifier': 'warn',
'regexp/no-useless-character-class': 'warn',
'regexp/no-useless-flag': 'warn',
'regexp/no-useless-lazy': 'warn',
'regexp/no-useless-range': 'warn',
'regexp/prefer-d': ['warn', { insideCharacterClass: 'ignore' }],
'regexp/prefer-plus-quantifier': 'warn',
'regexp/prefer-question-quantifier': 'warn',
'regexp/prefer-star-quantifier': 'warn',
'regexp/prefer-w': 'warn',
'regexp/sort-alternatives': 'warn',
'regexp/sort-flags': 'warn',
'regexp/strict': 'warn',

@@ -124,7 +131,10 @@ module.exports = {
worker: true
},
globals: {
'Prism': true
'Prism': true,
// Allow Set and Map. They are partially supported by IE11
'Set': true,
'Map': true
},
rules: {
'no-var': 'off'
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -57,3 +57,16 @@ jobs:
node-version: 14.x
- run: npm ci
- run: npm run lint:ci

coverage:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- run: npm ci
- run: npm run regex-coverage
Loading