Skip to content

Commit

Permalink
Add support and testing for eslint 9
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Deis authored and Nicholas Deis committed May 24, 2024
1 parent 2c6d315 commit 8ea973d
Show file tree
Hide file tree
Showing 13 changed files with 2,805 additions and 1,294 deletions.
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
tests/*
/node_modules/
*.log
/tmp/
/tmp/
staging/
9 changes: 7 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,22 @@ const fs = require("fs"),
utils = require("./utils"),
metriclcs = require("metric-lcs");

const { regexpizeTemplate, resolveOptions, createFixer } = utils;
const { resolveOptions, createFixer } = utils;

module.exports = {
meta: {
name: "eslint-plugin-notice",
version: "1.0.0-eslint9"
},
rules: {
notice: {
meta: {
docs: {
description: "An eslint rule that checks the top of files and --fix them too!",
category: "Stylistic Issues"
},
fixable: "code"
fixable: "code",
schema: false
},
create(context) {
const {
Expand Down
Loading

0 comments on commit 8ea973d

Please sign in to comment.